// import { Product } from 'types/product'; import { RCAddress } from './coreEntites/Address'; import { rcEnums } from './rc.enums'; export interface ProductPrice { id: number; createdAt: string; updatedAt: string; organizationId: number; productId: number; name: string; price: string; currency: string; // paymentProcessorId: string; startDate: string; endDate: string; } export interface SeasonProduct { id: number; createdAt: string; updatedAt: string; organizationId: 1; name: string; quantity: string; // paymentProcessorId: string; startDate: string; endDate: string; isPublic: string; prices?: ProductPrice; } export interface BlockDated { id: number; createdAt: string; updatedAt: string; entityType: string; entityId: number; name: string; startDate: string; endDate: string; } export interface ActivityTime { id: number; createdAt: string; updatedAt: string; parentType: string; parentId: number; dayOfWeek: string; open: string; close: string; } export interface Season { id: number; programId: number; name: string; description?: string; longDescription?: string; startDate: string; endDate: string; registrationStartDate?: string; registrationEndDate?: string; questionnaires: number[] | null; seasonType?: string; parentSeasonId?: string; maxParticipants?: string; maxMaleParticipants?: string; maxFemaleParticipants?: string; maxWaitlist?: string; maxMaleWaitlist?: string; maxFemaleWaitlist: string; organizationId: number; facilityId?: string; facilityName?: string; addressId?: string; address: RCAddress; sport?: number; minAge?: string; maxAge?: string; gender?: string; level?: string[]; blockedDated?: BlockDated[]; activityTimes?: ActivityTime[]; products?: unknown; mainMedia?: { url: string; }; } export enum SegmentTypes { SEASON, EVENT, } export interface SeasonAsSegment extends Season { segmentType: rcEnums.shared.ResourceNameTypeEnum; }